export {}

const res = { name: '小花', city: '武汉',  skills: ['js', 'css'], age: '豆蔻' }

type Res = typeof res

function fn(obj:Res) {
  // 这里写obj.有提示
  obj.name
}

fn(res)